package com.qys.livesMall.system.model.dto.sys;

import com.qys.livesMall.framework.view.BaseQuery;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@Data
public class SysConfigQuery extends BaseQuery {

    @Schema(description = "标题")
    private String title;

    @Schema(description = "分组字段")
    private String groupId;

    @Schema(description = "分组名称")
    private String groupName;

    @Schema(description = "字段类型")
    private String type;

    @Schema(description = "如果为字典项，若依字典值是否多选")
    private String multiple;

    @Schema(description = "是否为图片 0-否 1-是")
    private Integer picture;

    @Schema(description = "是否为视频 0-否 1-是")
    private Integer video;

    @Schema(description = "是否为富文本 0-否 1-是")
    private Integer rech;

    @Schema(description = "字段取值key 该字段唯一，前端取值的时候使用")
    private String key;

    @Schema(description = "字段值（普通纸保存到value）")
    private String value;

    @Schema(description = "富文本保存到value")
    private String richText;

    @Schema(description = "字段备注")
    private String remark;

    @Schema(description = "排序")
    private String sort;

    @Schema(description = "创建者")
    private String createBy;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新者")
    private String updateBy;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    @Schema(description = "是否必填")
    private Boolean required;

    @Schema(description = "字典类型")
    private String dictType;
}
